package com.LeeCode;

/**
 * 在区间范围内统计奇数数目
 */

public class Code1523 {
    public static void main(String[] args) {
        int low = 3, high = 7;
        System.out.println(new Code1523().countOdds(low, high));
    }

    public int countOdds(int low, int high) {
        return (high + 1) / 2 - low / 2;
    }
}
